<template>
  <div class="container-fuild">
    <div class="row page-titles">
      <ol class="breadcrumb">
        <li class="breadcrumb-item active">个人中心 </li>
<!--        <li class="breadcrumb-item">实训日志</li>-->
      </ol>
    </div>
    <div class="row">
      <div class="card">
        <div class="card-header">
          <p class="card-title">我的个人信息</p>
        </div>
        <div class="card-body custom-ekeditor">
          <div id="ckeditor">

            <el-container>
              <el-aside width="400px" style="margin-top: 20px;margin-left: 40px">
                <el-form  label-width="130px" :model="formLabelAlign" style="color: #7d94c0">
                  <el-form-item label="学号 :" style="margin-right: 100px;font-weight: bold">
                    <el-input  v-model="formLabelAlign.student_id"></el-input>
                  </el-form-item>
                  <el-form-item label="姓名 :" style="margin-right: 100px;font-weight: bold">
                    <el-input  v-model="formLabelAlign.student_name"></el-input>
                  </el-form-item>
                  <el-form-item label="性别 :" style="margin-right: 100px;font-weight: bold">
                    <el-input v-model="formLabelAlign.gender"></el-input>
                  </el-form-item>
                </el-form>
              </el-aside>
              <el-main style="margin-left: 1px">
                <el-form  label-width="140px" :model="formLabelAlign">
                  <el-form-item label="年级 :" style="margin-right: 100px;font-weight: bold">
                    <el-input v-model="formLabelAlign.grade"></el-input>
                  </el-form-item>
                  <el-form-item label="班级 :" style="margin-right: 100px;font-weight: bold">
                    <el-input v-model="formLabelAlign.class"></el-input>
                  </el-form-item>
                  <el-form-item label="专业 :" style="margin-right: 100px;font-weight: bold">
                    <el-input  v-model="formLabelAlign.major"></el-input>
                  </el-form-item>
                </el-form>
              </el-main>
            </el-container>
<!--            <el-form label-width="70px" :model="formLabelAlign" >-->
<!--              <el-row>-->
<!--                <el-col :span="8">-->
<!--                  <el-form-item label="学号："  >-->
<!--                    <el-input v-model="formLabelAlign.name"></el-input>-->
<!--                  </el-form-item>-->
<!--                </el-col>-->
<!--                <el-col :span="8">-->
<!--                  <el-form-item label="姓名：" >-->
<!--                    <el-input v-model="formLabelAlign.region"></el-input>-->
<!--                  </el-form-item>-->
<!--                </el-col>-->
<!--                <el-col :span="8">-->
<!--                  <el-form-item label="年级：" >-->
<!--                    <el-input v-model="formLabelAlign.type"></el-input>-->
<!--                  </el-form-item>-->
<!--                </el-col>-->
<!--              </el-row>-->
<!--            </el-form>-->


          </div>
        </div>
      </div>
    </div>
  </div>

</template>

<script>
export default {
  data() {
    return{
      id:this.$route.query.id,
      formLabelAlign: {
        student_id:'1234567890',
        student_name:'余楚文',
        gender:'女',
        grade:'2019',
        class:'',
        major:''
      }
    }
  },
  mounted() {
    this.tableShow();
  },
  methods: {
    tableShow(){
      let that = this;
      that.axios.get('http://localhost:9090/user/getTrainClass/'+this.id).then(res =>{
        // console.log(res.data.data[0].trainingStudent.student);
        this.formLabelAlign.student_id=res.data.data[0].trainingStudent.student.studentId;
        this.formLabelAlign.student_name=res.data.data[0].trainingStudent.student.studentName;
        this.formLabelAlign.gender=res.data.data[0].trainingStudent.student.gender;
        this.formLabelAlign.grade=res.data.data[0].trainingStudent.student.grade;
        this.formLabelAlign.class=res.data.data[0].trainingStudent.student.banji;
        this.formLabelAlign.major=res.data.data[0].trainingStudent.student.major;
      }).catch(err =>{
        console.log(err)
      })
    }
  }
}
</script>

<style scoped>
/*表头*/
.container-fuild {
  float: left;
  /*padding-top:1.875rem;*/
  padding-right: 1.875rem;
  padding-left: 1.875rem;
  width: 93%;
  margin-right: auto;
  margin-left: auto;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #7d94c0;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.page-titles {
  justify-content: space-between;
  /*padding: 0.1375rem 0.5rem;*/
  padding-top: 0.25rem;
  padding-right: 1.875rem;
  padding-bottom: 0.25rem;
  padding-left: 1.875rem;
  background: #fff;
  margin-bottom: 1.875rem;
  border-radius: 1rem;
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 30px;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
}

.page-titles .breadcrumb {
  padding: 0;
  background: transparent;
  font-size: 1.1875rem;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  list-style: none;
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
}

.breadcrumb li.active {
  font-weight: 600;
  font-size: 1.1875rem;
}

.breadcrumb li {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0.5rem;
  font-size: 1.1875rem;
}

/*主题部分*/
.row {
  --bs-gutter-x: 30px;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-top: calc(var(--bs-gutter-y) * -1);
  margin-right: calc(var(--bs-gutter-x) / -2);
  margin-left: calc(var(--bs-gutter-x) / -2);
}

.card {
  width: 100%;
  margin-bottom: 1.875rem;
  background-color: #fff;
  transition: all .5s ease-in-out;
  position: relative;
  /*border: 0rem solid transparent;*/
  border-radius: 1.25rem;
  /*box-shadow: 0rem 0.3125rem 0.3125rem 0rem rgb(82 63 105 / 5%);*/
  height: calc(100% - 30px);

  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
}

.card-header {
  border-color: #f5f5f5;
  position: relative;
  background: transparent;
  /*padding-top: 0rem;*/
  padding-right: 1.875rem;
  /*padding-bottom: 0rem;*/
  padding-left: 1.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 300;
  color: #909399;
  text-transform: capitalize;
}

.card-body {
  padding-top: 0.125rem;
  padding-right: 1.875rem;
  padding-bottom: 1.125rem;
  padding-left: 1.875rem;

  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
}

/*让dialog能够悬浮在中间*/
.showAll_dialog {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

::v-deep .el-dialog {
  margin: 0 auto !important;
  height: 80%;
  overflow: auto;
  background-color: white;
}

.el-dialog__body {
  position: absolute;
  left: 0;
  top: 54px;
  bottom: 0;
  right: 0;
  z-index: 1;
  overflow: hidden;
  overflow-y: auto;

  line-height: 30px;
  padding: 15px;
}

/*弹窗标题的padding*/
::v-deep .el-dialog__header {
  padding-top: 30px;
  padding-right: 50px;
  padding-bottom: 30px;
  padding-left: 50px;
}

/*弹窗圆角*/
::v-deep .el-dialog {
  border-radius: 10px;
}

/*弹窗标题的颜色*/
::v-deep .el-dialog__title {
  color: #909399;
}

/*更换表格字体颜色*/
::v-deep .el-table {
  color: #7d94c0;
}

::v-deep .el-form-item__label{
  color: #7d94c0;
}

::v-deep .el-input__inner{
  color: #7d94c0;
}
</style>